package src.com.zt.demo.interface_extends_demo.object_interface;

public abstract class Bird extends Animal{    //创建一个抽象的Bird类且继承动物类
    String feather; //羽毛

    public Bird(String feather){    //Bird的构造方法
        System.out.println("这是一个鸟类");
        this.feather = feather;
    }

    public void growFeather(){  //Bird的具体行为
        System.out.println("长满" + feather + "羽毛");
    }

    public abstract void  move();   //抽象方法

    public void reproduce(){    //实现鸟类的抽象方法
        System.out.println("下蛋");
    }
}
